﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var lngs = v.data("lngs") as String; %>
<%var read = v.data("read") as System.Data.DataRow; %>
<%ctx.setItem("menuid", "10"); %>

<table width="998" align="center" cellspacing="0" cellpadding="0" border="0">
    <tbody>
        <tr>
            <td width="221" valign="top">
                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table68">
                    <tbody>
                        <tr>
                            <td height="26" background="#{templates}images/kctx_r1_c1.jpg">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table69">
                                    <tbody>
                                        <tr>
                                            <td width="22">&#12288;</td>
                                            <td>
                                                <font style="font-size: 14px;" color="#ffffff"><b>行业经典示范</b></font></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>

                                <img src="#{templates}images/m1-1.jpg"></td>
                        </tr>
                        <tr>
                            <%var typeread = v.data("typeread") as TypeList; %>
                            <td height="37" background="#{templates}images/kctx_r5_c1.jpg" align="center">
                                <%var list = new List<TypeList>(); %>
                                <%if (typeread.upid == 0)
                                  {
                                      list = TypeList.find(" upid = " + typeread.Id + " order by pid asc,id asc").list();
                                  }
                                  else
                                  {
                                      list = TypeList.find(" upid = " + typeread.upid + " order by pid asc,id asc").list();
                                  } %>
                                <%foreach(var row in list){ %>
                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table80">
                                    <tbody>
                                        <tr>
                                            <td height="37" background="#{templates}images/kctx_r3_c1a.jpg" align="center">
                                                <a <%if(row.Id==typeread.Id){ %>class="current"<%} %> href="<%=row.glink %>"><%=row.typename %></a></td>
                                        </tr>
                                    </tbody>
                                </table><%} %>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0" id="table72">
                    <tbody>
                        <tr>
                            <td valign="top" height="4">
                                <img width="221" height="2" border="0" src="#{templates}images/kctx_r7_c1.jpg"></td>
                        </tr>
                        <tr>
                            <td height="2"></td>
                        </tr>
                    </tbody>
                </table>

                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table68">
                    <tbody>
                        <tr>
                            <td height="26" background="#{templates}images/kctx_r1_c1.jpg">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table69">
                                    <tbody>
                                        <tr>
                                            <td width="22">&#12288;</td>
                                            <td>
                                                <font style="font-size: 14px;" color="#ffffff"><b>     联系我们</b></font></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>

                                <img src="#{templates}images/m1-1aa.jpg"></td>
                        </tr>
                        <tr>
                            <td height="37" align="center" valign="top" background="#{templates}images/kctx_r5_c1.jpg">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table80">
                                    <tbody>
                                        <tr>
                                            <td height="37" background="#{templates}images/kctx_r3_c1.jpg" align="left">

                                                <div style="float: left; padding-left: 18px; line-height: 24px; width: 180px;">
                                                    <%=YBBCommon.GetReadDr(4)["indexcontent"] %>
                                                </div>


                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <table width="100%" align="center" cellspacing="0" cellpadding="0" border="0" id="table72">
                    <tbody>
                        <tr>
                            <td valign="top" height="4">
                                <img width="221" height="2" border="0" src="#{templates}images/kctx_r7_c1.jpg"></td>
                        </tr>
                        <tr>
                            <td height="2"></td>
                        </tr>
                    </tbody>
                </table>

            </td>
            <td width="8"></td>
            <td width="769" valign="top">

                <%var listt = TypeList.find("upid=" + typeread.Id + " order by pid asc,id asc").list(); %>
                <%foreach(var row in listt){ %>
                <table width="769" cellspacing="0" cellpadding="0" border="0" id="table80" class="font13" style="border: #cfcdcd solid 1px;">
                    <tbody>
                        <tr>
                            <td width="100%" valign="top" class="main_tdbgall">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table81">
                                    <tbody>
                                        <tr>
                                            <td class="main_shadow"></td>
                                        </tr>
                                    </tbody>
                                </table>

                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table82">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table83" style="word-break: break-all" class="main_title_575">
                                                    <tbody>
                                                        <tr>
                                                            <td valign="center"><a href="<%=row.glink %>" title="" class="Class"><b style="color: #FFF; font-size: 14px;"><%=row.typename %></b></a></td>
                                                            <td width="51"><a href="<%=row.glink %>" title="" class="Class">
                                                                <font color="#000000">more...</font></a></td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td height="6"></td>
                                                    </tr>
                                                </table>
                                                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="table84" style="word-break: break-all" class="main_tdbg_575">
                                                    <tbody>
                                                        <tr>
                                                            <td width="1%" rowspan="2"></td>
                                                            <td valign="top">
                                                                <%var documentlist = Document.findPage(" tid=" + row.Id + " order by pid asc,addtime desc",8).Results; %>
                                                                <table width="98%" align="left" cellpadding="0" cellspacing="0">
                                                                    <tbody>
                                                                        <%foreach(var row1 in documentlist){ %>
                                                                        <tr>
                                                                            <td width="10" valign="top" class="listbg">
                                                                                <%if (("," + row1.recommend + ",").IndexOf(",1,") != -1)
                                                                                  { %>
                                                                                <img alt="推荐文章" src="#{templates}images/Article_elite.gif">
                                                                                <%}else{ %>
                                                                                <img alt="普通文章" src="#{templates}images/Article_common.gif">
                                                                                <%} %>
                                                                                </td>
                                                                            <td class="listbg"><a target="_blank" title="文章标题：<%=row1.title %>

作&nbsp;&nbsp;&nbsp;&nbsp;者：<%if(row1.author.StrIsNullOrEmpty()){ %>佚名<%}else{ %><%=row1.author %><%} %>

更新时间：<%=row1.addtime %>"
                                                                                href="<%=row1.readlink %>" class="listA"><%=row1.title %></a></td>
                                                                            <td width="60" class="listbg"><%=time.FormatDate(row1.addtime,0) %></td>
                                                                        </tr><%} %>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>


                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td height="8"></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>


                            </td>
                        </tr>
                    </tbody>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="8"></td>
                    </tr>
                </table><%} %>
            </td>
        </tr>
    </tbody>
</table>